#ifndef __G2_CHECK_SUM_H__
#define __G2_CHECK_SUM_H__

#ifdef __cplusplus
extern "C"{
#endif

DWORD ReadUserDataFile(LPCTSTR filename, LPVOID destbuf, DWORD readlength, DWORD *checksum);
DWORD WriteUserDataFile(LPCTSTR filename, LPVOID Srcbuf, DWORD readlength, DWORD CheckSum);
DWORD GetBufferDataSum(LPVOID pbuffer, DWORD buffer_size);
DWORD CheckSumUserDataFile(char *pDataName, char *pBakDataName, int iDataSize, void *pDataBuffer);


#ifdef __cplusplus
}
#endif

#endif

